package com.example8.fenku_fenbiao.controller;


import com.example8.fenku_fenbiao.entity.UserDO;
import com.example8.fenku_fenbiao.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description
 * @Author lihw
 * @Date 2024/4/11 14:40
 */
@RestController
@RequestMapping("/test")
public class TestController {

    @Autowired
    private UserMapper userMapper;

    @GetMapping("save")
    private void save(){
        UserDO userDO = new UserDO();
        userDO.setRealName("lihognwei");
        userDO.setUsername("lhw");
        userDO.setPassword("123456");
        userDO.setRegion("中国");

        userMapper.insert(userDO);
    }

}
